package com.my.user.service.impl.version;

import com.my.common.domain.UserAddress;
import com.my.common.service.UserService;

import java.util.ArrayList;
import java.util.List;

public class UserServiceImplV2 implements UserService {
    public List<UserAddress> getList(Integer id) {
        System.out.println("用户id="+id);
        System.out.println("UserServiceImplV1 new...");
        List<UserAddress> list = new ArrayList<>();
        list.add(new UserAddress(1,"北京","张三","12345678","Y"));
        list.add(new UserAddress(2,"上海","李四","22345678","N"));
        return list;
    }
}
